number = int(input("请输入一个数字："))
orgin_number = number
reversed_number = 0
while number > 0:
    reversed_number = reversed_number * 10 + number % 10
    number //= 10
if orgin_number == reversed_number:
    print(f"{orgin_number}是回文数")
else:
    print(f"{orgin_number}不是回文数")
